<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			*{
				margin:0;
				padding:0;
			}
			
			#nav{
				border:1px solid red;
				height:300px;
				width:600px;
				margin:0 auto;
			}
			#nav a{
				border:1px solid black;
				width:100px;
				height:300px;
				/*block:1,将行元素转为块元素*/
				display:block;
			/*}
			#nav a{
				float: left;
			}*/
		</style>
	</head>
	<body>
		<div id="nav">
			<a href="">首页</a>
			<a href="">体育</a>
			<a href="">新闻</a>
			<a href="">娱乐</a>
		</div>
	</body>
</html>
